package cn.itrip.dao;

import cn.itrip.beans.pojo.ItripUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;

public interface ItripUserMapper {
    int deleteByPrimaryKey(Long id);

    int insert(ItripUser record);

    ItripUser selectByPrimaryKey(Long id);

    List<ItripUser> selectAll();

    int updateByPrimaryKey(@Param("record") ItripUser record);

    ItripUser login(@Param("name") String name,@Param("password") String password);

    ItripUser selectByUserCode(String code);
}